.demo{
    border: 1px solid red;
    height: 100px;
    width: 100px;
    position: absolute;
    top: 0;
    left: 0;
}
body{
    margin: 0;
    border: 10px solid green;
    height: 100vh;
    box-sizing: border-box;
}